<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户展示</title>
</head>
<body>
  <h1>  用户信息展示</h1>
  <h2>  用户数:{{names|length}}</h2>
  <ul>
      {% for name in names %}
          {% if name|length>=3 %}
                <li><a href="">{{name}}</a></li>
           {% else %}
               <li>{{name}}</li>
           {% endif %}
      {% endfor %}
  </ul>
<table border="1" cellspacing="1">
  {% for user in users %}
    <tr style="background-color: deeppink">
        <td>{{loop.index}}</td>
        <td>{{user.userid}}</td>
        <td>{{user.name}}</td>
        <td>{{user.phone}}</td>
    </tr>
  {% endfor %}
</table>
<p> {{ msg|safe |upper }}</p>
<p>
    {{ filter_msg }}
    <br>
     替换：{{ filter_msg |replace_str }}
    <br>
    反转：{{ filter_msg |reverse_str }}
</p>
</body>
</html>